//导入lowdb
const low = require('lowdb');
const FileSync = require('lowdb/adapters/FileSync');

const adapter = new FileSync('db.json');
const db = low(adapter);


//初始化数据
// db.defaults({ posts: [], user: {} }).write();

//压入数据
// db.get('posts').push({id:1,title:'今天的天气不错~~~~'}).write();
